//
//  WeekDaysView.h
//  carcareIOS
//
//  Created by ileo on 16/6/28.
//  Copyright © 2016年 chezheng. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DayView <NSObject>

@property (nonatomic, strong) NSDateComponents *dateComponents;
@property (nonatomic, copy) void (^Click)(NSDateComponents *dateComponents);

@end

@protocol WeekDaysViewDataSource <NSObject>

-(UIView<DayView> *)dayViewWithDateComponents:(NSDateComponents *)dateComponents monthFirstDay:(NSDate *)monthFirstDay isShowOneMonth:(BOOL)isShowMonth;

@end

@interface WeekDaysView : UIView

@property (nonatomic, weak) id<WeekDaysViewDataSource> dataSource;

-(void)setDateComponents:(NSArray<NSDateComponents *> *)dateComponents monthFirstDay:(NSDate *)monthFirstDay isShowOneMonth:(BOOL)isShowMonth;//7天  所在月  是否用于显示一整月

@end


